﻿using System;
using System.Windows.Forms;

namespace cndp.View
{
    public partial class FormInfo : Form
    {
        public FormInfo()
        {
            InitializeComponent();
        }

        private void buttonDone_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void FormInfo_KeyPress(object sender, KeyPressEventArgs e)
        {
        }

        private void FormInfo_KeyUp(object sender, KeyEventArgs e)
        {
        }

        private void FormInfo_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
                Close();
        }

        private void FormInfo_Load(object sender, EventArgs e)
        {
            KeyPreview = true;
        }
    }
}